package com.hongkl.controller;

import com.hongkl.entity.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PersonController {
    @Autowired
    private Person person;


    @RequestMapping("/person")
    public void getUsername(){
        System.out.println(person.getPet().getName());
    }


}
